package com.management.commons.exception.ExceptionCode;

public enum DefectPriorityExceptionCode{
    ADDPRIORITY_ERROR(3001,"添加失败"),
    PRIORITYSTATE_ERROR(3002,"暂不可修改"),
    DELPRIORITY_ERROR(3003,"删除失败"),
    CHANGEPRIORITY_ERROR(3004,"修改失败"),
    CHANGEPRIORITY2_ERROR(3005,"请勿重复提交优先级名称"),
    PRIORITYDESC_EXISTS_ERROR(3006,"该优先级已存在，请重新输入");
    private Integer code;
    private String message;
    DefectPriorityExceptionCode(Integer code, String message){
        this.code=code;
        this.message=message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
